
import java.util.Scanner;

public class alg6 {

	
	public static void main(String[] args) 
	{
	    Scanner leia = new Scanner (System.in);
	    
	    int v1, v2, v3; 
	    double mediaArit, mediaHarm;
	    
	    System.out.printf("Entre com 3 Valores: ");
	    v1 = leia.nextInt();
	    v2 = leia.nextInt();
	    v3 = leia.nextInt();
	    
	    mediaArit = ((v1 + v2 + v3) /3);
	    mediaHarm = (3/((1/v1) + (1/v2) + (1/v3)));
	    
	    System.out.printf("Media Aritimetica: " + mediaArit);
	    System.out.println();
	    System.out.printf("Media Harmonica " + mediaHarm);
	    

	}

}
